package com.czmh.etc.onlinepubsys.services.wj;

import com.czmh.etc.onlinepubsys.entity.wj.CurrentContext;
import com.czmh.etc.onlinepubsys.entity.wj.EtcWjOrder;
import com.czmh.etc.onlinepubsys.json.mingchuang.JSONResult;
import com.czmh.etc.onlinepubsys.model.EtcDevice;

import java.util.Map;

public interface WjIEtcOrderService {

    /**
     * 根据订单号更新状态
     * @param orderNo
     * @param transactionId
     * @param payState
     */
    void updateByOrderNo(String orderNo, String transactionId, Integer payState);

    void deleteUnpayOrder();

    EtcWjOrder getByProductSn(String productSn);

    EtcWjOrder getByProductSn(String productSn, Integer payMode);

    /**
     * 根据订单号查询订单状态和设备状态
     * @param OrderNo
     * @return
     */
    EtcWjOrder queryByOrderNo(String OrderNo);

    void saveOrderAndContext(EtcWjOrder entity, CurrentContext ctx, String exchangeCode);

    JSONResult update(EtcWjOrder entity);

    void updateByObject(EtcWjOrder entity);
}
